package com.dys.mapper;

import com.dys.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: com.dys.mapper.UserMapper
 * @description: com.dys.mapper
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/27 11:22
 */
public interface UserMapper {
    /**
     * 根据账号和密码登录
     *
     * @param username 账号
     * @param password 密码
     * @return 用户信息
     */
    User selectUser(@Param("username") String username, @Param("password") String password);

    /**
     * 获取所有账号信息
     *
     * @return 所有账号信息
     */
    List<User> selectAllUsers();
}
